<?php
require_once ('_simpletest/autorun.php');

define('TEST_DIR', realpath(dirname(__FILE__)));
define('SRC_DIR', realpath(TEST_DIR . '/../src'));


class AllTests extends TestSuite {
	
	function addDir($dirName)	{
		if (!file_exists($dirName))	{
			return false;
		}
		if (!is_dir($dirName))	{
			return false;
		}
		
		foreach(glob($dirName . '/*.php') as $aFile)	{
			$this->addFile($aFile);
		}
	}
	
	
	
    function AllTests() {
        $this->TestSuite('All tests');
        
        foreach(glob(TEST_DIR . '/*', GLOB_ONLYDIR) as $aDir)	{
        	if (basename($aDir) != '_simpletest')	{
        		$this->addDir($aDir);
        	}
        }
    }
}

?>